package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.MemberLoginVo;
import com.atguigu.gulimall.auth.vo.MemberRegistVo;
import com.atguigu.gulimall.auth.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @program: gulimall
 * @description: 会员
 * @author: liuxvru
 * @create: 2024-02-19 17:30
 **/
@FeignClient("gulimall-member")
public interface MemberFeifnService {
    @PostMapping("/member/member/regist")
    R regist(@RequestBody MemberRegistVo memberRegistVo);
    @PostMapping("/member/member/login")
    R login(@RequestBody MemberLoginVo memberLoginVo);
    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody UserVo userVo);
}
